#include <cstdio>
//using namespace std;

void stringReverse (const char *str)
{
   if (*str == '\0') return;
   stringReverse (str + 1);
   fputc (*str, stdout);
}

int main() {
    char test[100];
    fgets (test, 100, stdin);
    stringReverse (test);
    fputc ('\n', stdout);
    return 0;
}
